@extends('newAdmin.layout.main')

@section('content')
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">网站配置</a>
        <a>
          <cite>配置分类</cite>
        </a>
      </span>
        <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
            <i class="layui-icon" style="line-height:30px">ဂ 刷新</i>
        </a>
    </div>
    <div class="x-body">
        <div class="layui-inline">
            <button class="layui-btn" onclick="x_admin_show('新增', '{{url("backstage/addcatepage")}}')">新增</button>
        </div>
        <table class="layui-table">
            <thead>
            <tr>
                <th>ID</th>
                <th>分类名称</th>
                <th>识别码</th>
                <th>添加时间</th>
                <th>操作</th></tr>
            </thead>
            <tbody>
            @foreach($list as $v)
                <tr>
                    <td>{{$v['id']}}</td>
                    <td>{{$v['name']}}</td>
                    <td>{{$v['action']}}</td>
                    <td>{{date('Y-m-d H:i:s', $v['create_time'])}}</td>
                    <td class="td-manage">
                        <a onclick="x_admin_show('添加配置','{{url("backstage/addsetting/{$v['id']}")}}')" title="添加配置" href="javascript:;">
                            <i class="layui-icon font-24">&#xe642;</i>
                        </a>
                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
@endsection
